package app.web.cartoon.collect;

import cn.lily.com.exception.YaconException;
import cn.lily.web.page.BusinessPage;
import cn.lily.web.widget.page.TPanel;
/**
 * 动漫采集主信息 - Edit
 * @author JiaJ
 * @date 2017年12月2日
 *
 */
public class CartoonMainEdit extends BusinessPage {

	@Override
	public void page_onLoad() throws YaconException {
		
		 TPanel cartoonMainPanel = Panel("cartoonMainPanel");
		 cartoonMainPanel.creatToolbar().setBarText("动漫信息表编辑");

		 Form("cartoonMainForm").setDictTable("LEO_CAN_INFO");
		 
		 //动漫名称
		 Form("cartoonMainForm").createFormCell(Input("CAN_NAME"));
		 Form("cartoonMainForm").createFormRow();		
		 
		 //日文名
		 Form("cartoonMainForm").createFormCell(Input("CAN_NAM_ENG"));
		 Form("cartoonMainForm").createFormRow();

		 //英文名
		 Form("cartoonMainForm").createFormCell(Input("CAN_NAM_JAP"));
		 Form("cartoonMainForm").createFormRow();
		 
		 //动漫首字母
		 Form("cartoonMainForm").createFormCell(Input("CAN_FIRST"));
		 Form("cartoonMainForm").createFormRow();
		 
		 //地区与来源
		 Form("cartoonMainForm").createFormCell(Drop("CAN_AREA"));
		 Form("cartoonMainForm").createFormCell(Drop("CAN_SOURCE"));
		 Form("cartoonMainForm").createFormRow();
		 
		 //动漫简介
		 Form("cartoonMainForm").createFormCell(TextArea("CAN_DEMO").setAreaRow(10));
		 Form("cartoonMainForm").createFormRow();
		 
		 cartoonMainPanel.createPanelCell(Form("cartoonMainForm"));
		 cartoonMainPanel.creatStatusBar().addElement(Button("save"));
		 cartoonMainPanel.getStatusBar().addElement(Button("exit"));
		 getPage().addElement(cartoonMainPanel);
		
	}

}
